<?php

namespace App\Utility\Auth\Wx;

use EasySwoole\Core\Component\Spl\SplBean;

class WxUserBean extends SplBean {
	protected $nickname;
	protected $sex;
	protected $headimgurl;
	protected $openid;
	protected $unionid;
	protected function initialize(): void {
		// 默认md5是32 位，当从数据库中读出数据恢复为bean的时候，不对密码做md5
	}
	/**
	 *
	 * @return the $nickname
	 */
	public function getNickname() {
		return $this->nickname;
	}
	
	/**
	 *
	 * @return the $sex
	 */
	public function getSex() {
		return $this->sex;
	}
	
	/**
	 *
	 * @return the $headimgurl
	 */
	public function getHeadimgurl() {
		return $this->headimgurl;
	}
	
	/**
	 *
	 * @return the $openid
	 */
	public function getOpenid() {
		return $this->openid;
	}
	
	/**
	 *
	 * @return the $unionid
	 */
	public function getUnionid() {
		return $this->unionid;
	}
	
	/**
	 *
	 * @param field_type $nickname        	
	 */
	public function setNickname($nickname) {
		$this->nickname = $nickname;
	}
	
	/**
	 *
	 * @param field_type $sex        	
	 */
	public function setSex($sex) {
		$this->sex = $sex;
	}
	
	/**
	 *
	 * @param field_type $headimgurl        	
	 */
	public function setHeadimgurl($headimgurl) {
		$this->headimgurl = $headimgurl;
	}
	
	/**
	 *
	 * @param field_type $openid        	
	 */
	public function setOpenid($openid) {
		$this->openid = $openid;
	}
	
	/**
	 *
	 * @param field_type $unionid        	
	 */
	public function setUnionid($unionid) {
		$this->unionid = $unionid;
	}
}